package com.org.service.facotry;

import com.org.constant.AgreementTypeEnum;
import com.org.constant.Constant;
import com.org.model.AgreementDetail;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.ModelAndView;


@Component("default")
public class DefaultAgreementDetailService implements AgreementService {

    /**
     * 获取协议详情
     * @return
     */
    @Override
    public ModelAndView getAgreement(AgreementDetail agreementDetail) {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName(AgreementTypeEnum.DEFAULT.getType());
        modelAndView.addObject(Constant.CONTENT, agreementDetail.getContent());
        return modelAndView;
    }
}
